package com.snail.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.snail.dto.VideoDataVo;
import com.snail.model.pojo.media.BizFiles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 极光x
 * @Date 2025/8/18 16:29
 * @Author yangming
 * @Description TODO
 **/
@DS("learn-media")
@Mapper
public interface BizFilesMapper extends BaseMapper<BizFiles> {
    /**
     * 随机查询file_type=0的数据
     * @param limit 限制查询条数
     * @return 随机数据列表
     */
    List<VideoDataVo> selectRandomByFileType0(@Param("limit") Integer limit);

}
